# filename: example8_7

import sys


class StudentClass:
    def __init__(self, name):
        self.name = name

    def __del__(self):
        print("Goodbye", self.name)


stu1 = StudentClass("Zhang San")
stu2 = stu1
print(sys.getrefcount(stu2))